import React from 'react'
import { Switch, Route } from 'react-router-dom'
import a from 'npm-run-all'

import Home from './Home'
import Son from './HoSon'
import List from './list'
class App extends React.Component {
    render() {
        return (
            <Switch>
                {/* 路由查找是从上往下的 所以404放在最下面 */}
                <Route exact path='/' component={Home}>
                </Route>
                <Route path='/list' component={List} />
                <Route path='/*' component={Son}></Route>
            </Switch>
        )
    }
}
export default App
